<?php

class Admin_IndexController extends Zend_Controller_Action
{
   
   private function _setTitle($viewTitle, $headTitle=array()) {
      $view = Zend_Layout::getMvcInstance()->getView(); 
      $this->view->title = $view->translate->_($viewTitle);
      if(!is_array($headTitle) || !$headTitle) {
         $headTitle = array($viewTitle);
      }
      foreach($headTitle as $ht) {
         $this->view->headTitle($view->translate->_($ht));
      }
   }

   public function init()
   {
      $this->_helper->layout->setLayout('admin');
      
   }

   public function indexAction() {
      
   }
   
   public function groupsAction() {
      $form = new Admin_Form_Groups();
      $this->view->form = $form;
      $this->_setTitle('Groups', array('Administrator', 'Groups'));
      
      
   }

}
